package com.baor.controller;


import com.baor.domain.DistributionLevelVo;
import com.baor.domain.conf.DistributionConf;
import com.baor.service.DistributionConfService;
import com.baor.utils.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/disConf")
public class DistributionConfController {

    @Autowired
    private DistributionConfService distributionConfService;


//    @RequestMapping("/list")
//    public AjaxResult<?> list(@RequestBody Map<String,Object> map){
//        return distributionConfService.list(map);
//    }

//    @RequestMapping("/insert")
//    public AjaxResult<?> insert(){
//        return distributionConfService.insert();
//    }

    @RequestMapping("/update")
    public AjaxResult<?> update(@RequestBody DistributionConf vo){
        return distributionConfService.update(vo);
    }

//    @RequestMapping("/delete/{id}")
//    public AjaxResult<?> delete(@PathVariable Integer id){
//        return distributionConfService.delete(id);
//    }

    @RequestMapping("/info/{id}")
    public AjaxResult<?> info(@PathVariable Integer id){
        return distributionConfService.info(id);
    }

}
